import { h } from 'vue';
import { CloseCircleFilled } from '@ant-design/icons-vue';

// 渲染由 icon 和字符串拼接的 vnode 元素
export const hErrorMsg = (msg: string) =>
  h(
    'div',
    {
      className: 'form-error-tip',
    },
    [h(CloseCircleFilled), msg],
  );
